package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.AchievementDockService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrframework.integration.dto.QueryStaffInductionRecordListComRespDto;
import com.wicket.okrframework.integration.dto.QueryStaffInductionRecordListComReqDto;
import com.wicket.okrapp.integration.FwAppAchievementDockClient;
import com.wicket.okrapp.integration.dto.BatchQueryAchievementDockByCreateInductionIdComRespDto;
import com.wicket.okrapp.integration.dto.BatchQueryAchievementDockByCreateInductionIdComReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffAchievementDockingDto;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrapp.integration.FwAppAchievementClient;
import com.wicket.okrcomponent.integration.FwCompInterfaceModeClient;
import com.wicket.okrapp.integration.dto.QueryAchievementDockingListComRespDto;
import com.wicket.okrapp.integration.dto.QueryAchievementDockingListComReqDto;
import com.wicket.okrcomponent.integration.dto.ImplementTwoDataRemovalExistsComRespDto;
import com.wicket.okrcomponent.integration.dto.ImplementTwoDataRemovalExistsComReqDto;
import com.wicket.okrcalc.integration.dto.DataSetsListOneDto;
import com.wicket.okrcomponent.integration.dto.DataSetsListTwoDto;
import com.wicket.okrapp.integration.dto.BatchQueryAchievementInfoComRespDto;
import com.wicket.okrapp.integration.dto.BatchQueryAchievementInfoComReqDto;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrapp.integration.dto.BatchQueryAchievementByCreateInductionIdComRespDto;
import com.wicket.okrapp.integration.dto.BatchQueryAchievementByCreateInductionIdComReqDto;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "AchievementDock", tags = { "AchievementDock" })
@RestController
// @RequestMapping("/oms/achievementDock/")
public class AchievementDockController {

  @Autowired
  AchievementDockService achievementDockService;
/**
   * B3批量查询成果对接by创建人
   * gen by moon at 7/19/2024, 5:46:24 PM
   */
    @PostMapping("/oms/achievementDock/batchQueryAchievementDockByCreateInductionId")
    @ApiOperation(value = "B3批量查询成果对接by创建人", response = OkrResult.class)
    public OkrResult<BffBatchQueryAchievementDockByCreateInductionIdRespDto> batchQueryAchievementDockByCreateInductionId(@RequestBody(required=false) @Validated BffBatchQueryAchievementDockByCreateInductionIdReqDto reqDTO){
        return OkrResult.success(achievementDockService.batchQueryAchievementDockByCreateInductionId(reqDTO));
    }
}
